package com.ynunicom.midplatform.sys.role;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class SysRoleController {
    @Autowired
    private SysRoleService sysRoleService;

    @PostMapping("/role/getRoleList")
    @ResponseBody
    public List<SysRole> getRoleList() {
        return sysRoleService.findAll();
    }

}
